﻿using System;
using System.Collections.Generic;
using com.gexin.rp.sdk.dto;

namespace com.igetui.api.openservice.igetui.template
{
	// Token: 0x02000048 RID: 72
	public class NotificationTemplate : AbstractTemplate
	{
		// Token: 0x17000246 RID: 582
		// (get) Token: 0x06000556 RID: 1366 RVA: 0x0000C94D File Offset: 0x0000AB4D
		// (set) Token: 0x06000557 RID: 1367 RVA: 0x0000C955 File Offset: 0x0000AB55
		public bool IsRing
		{
			get
			{
				return this.isRing;
			}
			set
			{
				this.isRing = value;
			}
		}

		// Token: 0x17000247 RID: 583
		// (get) Token: 0x06000558 RID: 1368 RVA: 0x0000C95E File Offset: 0x0000AB5E
		// (set) Token: 0x06000559 RID: 1369 RVA: 0x0000C966 File Offset: 0x0000AB66
		public bool IsVibrate
		{
			get
			{
				return this.isVibrate;
			}
			set
			{
				this.isVibrate = value;
			}
		}

		// Token: 0x17000248 RID: 584
		// (get) Token: 0x0600055A RID: 1370 RVA: 0x0000C96F File Offset: 0x0000AB6F
		// (set) Token: 0x0600055B RID: 1371 RVA: 0x0000C977 File Offset: 0x0000AB77
		public bool IsClearable
		{
			get
			{
				return this.isClearable;
			}
			set
			{
				this.isClearable = value;
			}
		}

		// Token: 0x17000249 RID: 585
		// (get) Token: 0x0600055C RID: 1372 RVA: 0x0000C980 File Offset: 0x0000AB80
		// (set) Token: 0x0600055D RID: 1373 RVA: 0x0000C988 File Offset: 0x0000AB88
		public string Text
		{
			get
			{
				return this.text;
			}
			set
			{
				this.text = value;
			}
		}

		// Token: 0x1700024A RID: 586
		// (get) Token: 0x0600055E RID: 1374 RVA: 0x0000C991 File Offset: 0x0000AB91
		// (set) Token: 0x0600055F RID: 1375 RVA: 0x0000C999 File Offset: 0x0000AB99
		public string Title
		{
			get
			{
				return this.title;
			}
			set
			{
				this.title = value;
			}
		}

		// Token: 0x1700024B RID: 587
		// (get) Token: 0x06000560 RID: 1376 RVA: 0x0000C9A2 File Offset: 0x0000ABA2
		// (set) Token: 0x06000561 RID: 1377 RVA: 0x0000C9AA File Offset: 0x0000ABAA
		public string Logo
		{
			get
			{
				return this.logo;
			}
			set
			{
				this.logo = value;
			}
		}

		// Token: 0x1700024C RID: 588
		// (get) Token: 0x06000562 RID: 1378 RVA: 0x0000C9B3 File Offset: 0x0000ABB3
		// (set) Token: 0x06000563 RID: 1379 RVA: 0x0000C9BB File Offset: 0x0000ABBB
		public string LogoURL
		{
			get
			{
				return this.logoURL;
			}
			set
			{
				this.logoURL = value;
			}
		}

		// Token: 0x1700024D RID: 589
		// (get) Token: 0x06000564 RID: 1380 RVA: 0x0000C9C4 File Offset: 0x0000ABC4
		// (set) Token: 0x06000565 RID: 1381 RVA: 0x0000C9CC File Offset: 0x0000ABCC
		public string TransmissionType
		{
			get
			{
				return this.transmissionType;
			}
			set
			{
				this.transmissionType = value;
			}
		}

		// Token: 0x1700024E RID: 590
		// (get) Token: 0x06000566 RID: 1382 RVA: 0x0000C9D5 File Offset: 0x0000ABD5
		// (set) Token: 0x06000567 RID: 1383 RVA: 0x0000C9DD File Offset: 0x0000ABDD
		public string TransmissionContent
		{
			get
			{
				return this.transmissionContent;
			}
			set
			{
				this.transmissionContent = value;
			}
		}

		// Token: 0x06000568 RID: 1384 RVA: 0x0000C9E8 File Offset: 0x0000ABE8
		protected override List<ActionChain> getActionChain()
		{
			List<ActionChain> list = new List<ActionChain>();
			ActionChain item = ActionChain.CreateBuilder().SetActionId(1).SetType(ActionChain.Types.Type.Goto).SetNext(10000).Build();
			ActionChain item2 = ActionChain.CreateBuilder().SetActionId(10000).SetType(ActionChain.Types.Type.notification).SetTitle(this.title).SetText(this.text).SetLogo(this.logo).SetLogoURL(this.logoURL).SetRing(this.isRing).SetClearable(this.isClearable).SetBuzz(this.isVibrate).SetNext(10010).Build();
			ActionChain item3 = ActionChain.CreateBuilder().SetActionId(10010).SetType(ActionChain.Types.Type.Goto).SetNext(10030).Build();
			AppStartUp appstartupid = AppStartUp.CreateBuilder().SetAndroid("").SetSymbia("").SetIos("").Build();
			ActionChain item4 = ActionChain.CreateBuilder().SetActionId(10030).SetType(ActionChain.Types.Type.startapp).SetAppid("").SetAutostart("1".Equals(this.transmissionType)).SetAppstartupid(appstartupid).SetFailedAction(100).SetNext(100).Build();
			ActionChain item5 = ActionChain.CreateBuilder().SetActionId(100).SetType(ActionChain.Types.Type.eoa).Build();
			list.Add(item);
			list.Add(item2);
			list.Add(item3);
			list.Add(item4);
			list.Add(item5);
			return list;
		}

		// Token: 0x06000569 RID: 1385 RVA: 0x0000C9D5 File Offset: 0x0000ABD5
		public override string getTransmissionContent()
		{
			return this.transmissionContent;
		}

		// Token: 0x0600056A RID: 1386 RVA: 0x0000C913 File Offset: 0x0000AB13
		public override string getPushType()
		{
			return "NotifyMsg";
		}

		// Token: 0x0600056B RID: 1387 RVA: 0x0000CB6E File Offset: 0x0000AD6E
		protected override int getTemplateId()
		{
			return 0;
		}

		// Token: 0x040002FD RID: 765
		private string text;

		// Token: 0x040002FE RID: 766
		private string title;

		// Token: 0x040002FF RID: 767
		private string logo = "";

		// Token: 0x04000300 RID: 768
		private string logoURL = "";

		// Token: 0x04000301 RID: 769
		private string transmissionType;

		// Token: 0x04000302 RID: 770
		private string transmissionContent;

		// Token: 0x04000303 RID: 771
		private bool isRing = true;

		// Token: 0x04000304 RID: 772
		private bool isVibrate = true;

		// Token: 0x04000305 RID: 773
		private bool isClearable = true;
	}
}
